package com.rpc.server.impl;

import com.rpc.annotation.RpcService;
import com.rpc.model.Person;
import com.rpc.server.HelloService;

/**
 * @Auther: zwg
 * @Date: 2019/1/7 10:34
 * @Description:
 */
@RpcService(HelloService.class)
public class HelloServiceImpl implements HelloService {
    @Override
    public String hello(String name) {
        return "hello "+name;
    }

    @Override
    public String hello(Person person) {
        return "hello"+person.getFirstName()+person.getLastName();
    }
}
